package com;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/****
 * 生产者启动类
 *
 */
public class Main {

	public static void main(String[] args) throws IOException {
		// 发布服务
		ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("provider.xml");
		app.start();// 加载
		System.out.println("服务发布成功...暴露的端口号是29015");
		System.in.read(); // 让程序阻塞
	}
}
